package com.opoc.service;

import com.opoc.pojo.Pool;
import com.opoc.pojo.PoolBasic;
import com.opoc.pojo.PoolTest;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface PoolService {
  /**
   *获取池子基本信息
   */
  List<PoolBasic> getPoolBasicInfo(String company_name, String pool_id, String pool_name);

  /**
   *添加池子
   */
  String addPool(Pool pool) throws IOException, ParseException;

  /**
   * 池子检测信息查询
   */
  List<PoolTest> getPoolDetectionInfo(String company_name, String pool_id, String pool_name);

  /**
   * 批量添加池子
   */
  String importPool(MultipartFile file) throws Exception;

  /**
   * 批量导出池子
   */
  String exportPool(List<String> ids) throws IOException, IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchMethodException;


  /**
   * 批量删除池子
   */
//  void delete(List<String> pool_ids);
  String delete(List<String> pool_ids);

  /**
   * 上传图片
   */
  Map<String, String> uploadImage(MultipartFile sewage_treatment_flow_chart, MultipartFile pool_code, String pool_id);

}
